<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ include file="/common/taglib.jsp"%>
<!doctype html>
<html class="x-border-box x-strict x-viewport">
<head>
<%@ include file="/common/head-system.jsp"%>
<title>录入</title>
<script type="text/javascript">
	window.refreshQuery = function() {
		location.reload();
	};
	jQuery(function() {
	});
</script>
</head>
<body class="x-body x-reset x-border-layout-ct x-container">
	<form action="save.do" method="post" id="mainForm">
		<s:token />
		<s:hidden name="id" />
		<ext:panel head="录入">
			<ext:formField labelname="名称" fieldname="nameText">
				<s:textfield name="nameText" cssClass="x-form-field x-form-text"
					cssStyle="width: 100%;" />
			</ext:formField>
			<ext:formField labelname="显示名称" fieldname="nameShow">
				<s:textfield name="nameShow" cssClass="x-form-field x-form-text"
					cssStyle="width: 100%;" />
			</ext:formField>
			<ext:formField labelname="类型" fieldname="propertyType">
				<s:textfield name="propertyType" cssClass="x-form-field x-form-text"
					cssStyle="width: 100%;" />
			</ext:formField>
			<ext:formField labelname="列名" fieldname="columnName">
				<s:textfield name="columnName" cssClass="x-form-field x-form-text"
					cssStyle="width: 100%;" />
			</ext:formField>
			<ext:formField labelname="是否必填项" fieldname="isNotNull">
				<s:radio name="isNotNull" list="#application.M.getDictByType('yn')" listKey="code" listValue="name" />
			</ext:formField>
			<ext:formField labelname="默认值" fieldname="defaultValue">
				<s:textfield name="defaultValue" cssClass="x-form-field x-form-text"
					cssStyle="width: 100%;" />
			</ext:formField>
			<ext:formField labelname="是否主键" fieldname="isKey">
				<s:radio name="isKey" list="#application.M.getDictByType('yn')" listKey="code" listValue="name" />
			</ext:formField>
			<ext:formField labelname="sequence" fieldname="sequenceName">
				<s:textfield name="sequenceName" cssClass="x-form-field x-form-text"
					cssStyle="width: 100%;" />
			</ext:formField>
			<ext:formField labelname="备注" fieldname="commentText">
				<s:textfield name="commentText" cssClass="x-form-field x-form-text"
					cssStyle="width: 100%;" />
			</ext:formField>
			<ext:formField labelname="是否唯一" fieldname="isUnique">
				<s:radio name="isUnique" list="#application.M.getDictByType('yn')" listKey="code" listValue="name" />
			</ext:formField>
			<ext:formField labelname="长度" fieldname="lengthValue">
				<s:textfield name="lengthValue" cssClass="x-form-field x-form-text"
					cssStyle="width: 100%;" />
			</ext:formField>
			<ext:formField labelname="位数" fieldname="precisionValue">
				<s:textfield name="precisionValue" cssClass="x-form-field x-form-text"
					cssStyle="width: 100%;" />
			</ext:formField>
			<ext:formField labelname="小数位数" fieldname="scaleValue">
				<s:textfield name="scaleValue" cssClass="x-form-field x-form-text"
					cssStyle="width: 100%;" />
			</ext:formField>
			<ext:formField labelname="是否显示" fieldname="isShow">
				<s:radio name="isShow" list="#application.M.getDictByType('yn')" listKey="code" listValue="name" />
			</ext:formField>
			<ext:formField labelname="是否有效" fieldname="isWork">
				<s:radio name="isWork" list="#application.M.getDictByType('yn')" listKey="code" listValue="name" />
			</ext:formField>
			<ext:formField labelname="是否查询" fieldname="isQuery">
				<s:radio name="isQuery" list="#application.M.getDictByType('yn')" listKey="code" listValue="name" />
			</ext:formField>
			<ext:formField labelname="字典类别" fieldname="dictType">
				<s:textfield name="dictType" cssClass="x-form-field x-form-text"
					cssStyle="width: 100%;" />
			</ext:formField>
			<ext:formField labelname="关联实体" fieldname="refEntity">
				<s:textfield name="refEntity" cssClass="x-form-field x-form-text"
					cssStyle="width: 100%;" />
			</ext:formField>
			<ext:formField labelname="关联属性" fieldname="refProperty">
				<s:textfield name="refProperty" cssClass="x-form-field x-form-text"
					cssStyle="width: 100%;" />
			</ext:formField>
			<ext:formField labelname="关联表" fieldname="refTable">
				<s:textfield name="refTable" cssClass="x-form-field x-form-text"
					cssStyle="width: 100%;" />
			</ext:formField>
			<ext:formField labelname="关联列" fieldname="refColumn">
				<s:textfield name="refColumn" cssClass="x-form-field x-form-text"
					cssStyle="width: 100%;" />
			</ext:formField>
			<ext:formField labelname="日期格式" fieldname="dateFormat">
				<s:textfield name="dateFormat" cssClass="x-form-field x-form-text"
					cssStyle="width: 100%;" />
			</ext:formField>
			<ext:formField labelname="显示日期格式" fieldname="dateFormatShow">
				<s:textfield name="dateFormatShow" cssClass="x-form-field x-form-text"
					cssStyle="width: 100%;" />
			</ext:formField>
			<ext:formField labelname="实体" fieldname="entityId">
				<s:textfield name="entityId" cssClass="x-form-field x-form-text"
					cssStyle="width: 100%;" />
			</ext:formField>
		</ext:panel>
		<br/>
		<div
			style="width: 100%; height: 34px; text-align: right; padding: 3px 0px;">
			<ext:button name="保存" onclick="jQuery('#mainForm').submit();" />
		</div>
	</form>
	<%@ include file="/common/foot.jsp"%>
</body>
</html>